package com.xiechuang.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @Description 业务层
 * @Author xiechuang
 * @Date 2021/11/9
 */
@Service
public class TestService {

    @Autowired
    private RestTemplate restTemplate;

    public String testLoadBalance() {
        return restTemplate.getForObject("http://eureka-client01-demo/test", String.class);
    }

}
